export const API_CONFIG = {
  NODES: {
    REGULATOR: {
      BASE_URL: 'http://localhost:3001/api',
      NAME: '监管节点'
    },
    EXCHANGE: {
      BASE_URL: 'http://localhost:3001/api',
      NAME: '交易所节点'
    },
    ENTERPRISE1: {
      BASE_URL: 'http://localhost:3001/api',
      NAME: '企业1节点'
    },
    ENTERPRISE2: {
      BASE_URL: 'http://localhost:3001/api',
      NAME: '企业2节点'
    }
  },
  ENDPOINTS: {
    // 链信息
    CHAIN_INFO: '/chaininfo',
    NODE_COUNT: '/chaininfo/node',
    CACHE_TRANS_NUMBER: '/chaininfo/getcachetransnumber',
    ACCEPTED_TRANS_NUMBER: '/chaininfo/getAcceptedTransNumber',

    // 交易 - 使用可用的端点
    POST_TRANSACTION: '/transaction/postTran',
    POST_TRANSACTION_STREAM: '/transaction/postTranStream',
    POST_TRANSACTION_STRING: '/transaction/postTranByString',
    GET_TRANSACTION: '/transaction',
    GET_TRANSACTION_WITH_HEIGHT: '/transaction/tranInfoAndHeight',
    GET_TRANSACTION_PROOF: '/transaction/proofOfTransaction',
    VERIFY_TRANSACTION_PROOF: '/transaction/verifyTransactionProof',
    GET_TRANSACTION_STREAM: '/transaction/stream',

    // DID - 使用正确的端点
    GET_DID_DOCUMENT: '/didDocuments',
    GET_DID_PUBKEY: '/didPubKeys',

    // 数据库 - 使用正确的端点
    DB_QUERY: '/db/query',

    // 节点信息
    NODE_INFO: '/nodeinfo'
  }
}; 